package com.pengtu.gsj.service.impl.lzgl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.lzgl.BudgetDao;
import com.pengtu.gsj.entity.lzgl.Budget;
import com.pengtu.gsj.service.lzgl.BudgetService;

/**
 * 
 * 
 * BudgetServiceImpl
 * 
 * 2017年4月18日 下午5:28:22
 * 
 * @version 1.0.0
 * 
 */
@Transactional
@Service
public class BudgetServiceImpl implements BudgetService {

	@Autowired
	private BudgetDao budgetDao;

	@Override
	public List<Budget> getBudgets(QueryFilter queryFilter) {
		return budgetDao.find(queryFilter);
	}

	@Override
	public Page<Budget> findBudget(Page<Budget> page, QueryFilter queryFilter) {
		return budgetDao.findPage(page, queryFilter);
	}

	@Override
	public Budget getBudget(String id) {
		return budgetDao.get(id);
	}

	@Override
	public void saveBudget(Budget budget) {
		budgetDao.save(budget);
	}

	@Override
	public void delateBudget(Budget budget) {
		budgetDao.delete(budget);

	}
}
